<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript"
	src="http://code.jquery.com/jquery-1.8.1.js"></script>

<script>
	jQuery(document).ready(function(){
		jQuery('#check').click(function() {
			jQuery.ajax({
				url : "book/product/" + jQuery('#isbn').val(),
				type : "get",
				dataType: "json",
				success : function(book) {
					jQuery('#title').val(book.title);
				}
			});
		});
	});
</script>

<title>BookStore</title>

</head>
<body>
	<input type="text" id="isbn" />
	<button id="check" value="질의보내기">질의보내기</button><br />
	<input id="title" type="text" readonly="readonly"/>
</body>
</html>